package com.dongpu.springboot.rabbitmq.rabbit;

import com.dongpu.springboot.rabbitmq.config.RabbitMQConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author biyuyang
 *
 * 一个生产者,对应多个消费者,且消息的分发是负载均衡的
 */
@Component
@RabbitListener(queues = RabbitMQConfig.QUEUE_A)
public class MsgReceiverC_one {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	@RabbitHandler
	public void process(String content){
		logger.info("处理器one接收处理队列A当中的消息： " + content);
	}

}
